import Cookies, { CookieAttributes } from 'js-cookie';

export const getCookie = (name: string) => {
  return Cookies.get(name);
};

export const setCookie = (name: string, value: any, options?: CookieAttributes) => {
  Cookies.set(name, `${value}`, { expires: 7, ...options });
};

export const removeCookie = (name: string, options?: CookieAttributes) => {
  Cookies.remove(name, options);
};
